#include <stdio.h>
#include <stdlib.h>
#include "securec.h"

struct Student {
    int id;
    char name[100];
    int age;
    int score;
};

int Cmp(const void *a, const void *b) {
    struct Student stu1 = *(struct Student *) a;
    struct Student stu2 = *(struct Student *) b;
    if (stu1.score != stu2.score) {
        return stu2.score - stu1.score;
    }
    if (strcmp(stu1.name, stu2.name) != 0) {
        return strcmp(stu1.name, stu2.name);
    }
    if (stu1.id != stu2.id) {
        return stu1.id - stu2.id;
    }
    return stu1.age - stu2.age;

}


//int main() {
//    struct Student student1[100] = {0};
//    int len = sizeof(student1) / sizeof(struct Student);
//    struct Student student[100] = {0};
//    for (int i = 0; i < len; ++i) {
//        struct Student stu = {0};
//        stu.id = rand() % 100 + 1;
//        itoa(i, stu.name, 10);
//        stu.age = rand() % 100 + 1;
//        stu.score = rand() % 100 + 1;
//        memcpy_s(&student[i], sizeof(student[i]), &stu, sizeof(stu));
//    }
//    qsort(student, len, sizeof(struct Student), Cmp);
//
//    for (int i = 0; i < len; ++i) {
//        printf("      %d, %d, %s, %d\n", student[i].score, student[i].id, student[i].name, student[i].age);
//    }
//
//    printf("%s", "start");
//
//}

struct List {
    int val;
    struct Student stu;
};

int main()
{
    printf(" %s", "start");
}